{extend name='admin@main'}

{block name="content"}
<table class="layui-table" lay-skin="line">
    <caption class="margin-bottom-10 text-left">{include file='member/index_search'}</caption>
    <!--{notempty name='list'}-->
    <thead>
    <tr>
        <th class='list-table-check-td think-checkbox'>
            <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
        </th>
        <th class='text-left nowrap'>会员信息</th>
        <th class='text-left nowrap'>会员级别</th>
        <th class='text-left nowrap'>储值额</th>
        <th class='text-left nowrap'>积分</th>
        <th class='text-left nowrap'>积分记录</th>
    </tr>
    </thead>
    <!--{/notempty}-->
    <tbody>
    <!--{foreach $list as $key=>$vo}-->
    <tr>
        <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>

        <td class="text-left nowrap relative">
            {notempty name='vo.headimg'}
            <img data-tips-image style="width:20px;height:20px;vertical-align:top" src="{$vo.headimg|default=''}" class="margin-right-5">
            {/notempty}
            <div class="inline-block">
                会员昵称：{$vo.nickname|default='未授权'}<br>
                会员手机：{$vo.phone|default='--'}<br>
                open_id：{$vo.openid|default='--'}<br>
                创建时间：{$vo.create_at|format_datetime}<br>
            </div>
        </td>
        <td class='text-left'>
            {if isset($vo['level_name'])}
               {$vo.level_name}
              {else/}
                 游客会员
            {/if}
        </td>
        <td class='text-left'>{$vo['amount'] - $vo['use_amount']}</td>
        <td class='text-left'>{$vo['score'] - $vo['used_score']}</td>
        <td class='text-left'>
            <a href="javascript:void(0)" data-modal='{:url("showRecord")}?open_id={$vo["openid"]}' data-title="查看记录">查看记录</a>
        </td>
    </tr>
    <!--{/foreach}-->
    </tbody>
</table>

{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

{/block}